import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Text widget',
      home: Scaffold(
        appBar: AppBar(title: Text('aaa')),
        body: Center(
          //相当于 div
          child: Container(
            child: new Image.network(
              'https://pics3.baidu.com/feed/f603918fa0ec08fab6f6959af6b9da6854fbdaf3.jpeg?token=336bfde2c24e8f368ce029dfff0a8b1b',
              //  repeat: ImageRepeat.repeat,  //图片是否重复
              //  repeat: ImageRepeat.repeatX,  //横向
               repeat: ImageRepeat.repeatY,  //纵向

            ),
            // child: new Image.asset(name), //存在项目中
            // child: new Image.file(name),   //存在手机中
            // child: new Image.memory(name),   //内存图片
            // child: new Image.network(name),   //网络图片
            width: 350.0,
            height: 350.0,
            color: Colors.lightBlue,
          ),
        ),
      ),
    );
  }
}
